package com.zc.angelica.controller;


import com.zc.angelica.entity.PlatformInfo;
import com.zc.angelica.entity.ResponseData;
import com.zc.angelica.service.PlatformInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 平台信息表(PlatformInfo)表控制层
 *
 * @author makejava
 * @since 2022-04-10 18:34:58
 */
@RestController
@RequestMapping("/platformInfo")
public class PlatformInfoController {

    @Autowired
    private PlatformInfoService platformInfoService;


    @PostMapping("/selectAll")
    public ResponseData addPlatformInfo(@RequestBody PlatformInfo platformInfo) {
        return platformInfoService.addPlatformInfo(platformInfo);
    }


    @GetMapping("/delPlatform")
    public ResponseData delPlatformInfo(Long id) {
        return platformInfoService.delPlatformInfo(id);
    }


    @GetMapping("/select")
    public ResponseData selectPlatformInfo() {
        return platformInfoService.selectPlatformInfo();
    }


    @GetMapping("/updatePlatform")
    public ResponseData updatePlatformInfo(PlatformInfo platformInfo) {
        return platformInfoService.updatePlatformInfo(platformInfo);
    }


}

